package cn.felord.debezium.entity;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class ItemHttpLed {
    public static JSONArray addItem(JSONArray jsonArray,int x,int y,int w,int h,
                                     int effect,int spd,int st,int zt_id,int zt_ys,String text){
        JSONObject item = new JSONObject();
        item.put("x",x);
        item.put("y",y);
        item.put("w",w);
        item.put("h",h);
        item.put("effect",effect);
        item.put("spd",spd);
        item.put("st",st);
        item.put("zt_id",zt_id);
        item.put("zt_ys",zt_ys);
        item.put("text",text);
        jsonArray.add(item);
        return jsonArray;
    }

}
